#if 0
#ifndef __BATTERY_H__
#define __BATTERY_H__

#include "app.h"
#include <ioCC2541.h>
#include "my_types.h"


#if(JHJ_BAND)
    #define  CHARGE_CHECK_IO  P0_1
#else
    #define  CHARGE_CHECK_IO  P0_0
#endif

extern unsigned char batteryData;
extern uint8_t chargeDisShowIndex;

void charge_check_interrupt_init(void);
void charge_periodic_task(void);
void charge_check_interrupt_task(void);

void low_remind_periodic_task(void);
void check_low_battery(void);
uint16_t read_battery(void);
void battery_charge_check(void);
void update_bat_level(void);
void init_bat(void);
void power_off_check(void);
#endif

#endif